import javax.swing.*;
import java.util.Random;

/**
 *  @author Maykk
 *  @since 2022/11/26 11:47
 *  @description Java 窗口
 *
 */
public class Demo08 {
    public static void main(String[] args) {
        int n=0;
        Random rd=new Random();
        while (n<1000){
            JFrame frame =new JFrame("芜湖~~~ 起飞~~~");
            frame.setSize(400,100);
            frame.setLocation(rd.nextInt(2560),rd.nextInt(1600));
            frame.setVisible(true);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.add(new JLabel("速度："+n));
            n++;

        }
    }
}